package com.csweimei.rentmanagementtreasure.tenant.ui.act.dayPaper;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.chad.library.BR;
import com.csweimei.rentmanagementtreasure.R;
import com.csweimei.rentmanagementtreasure.base.AppConfig;
import com.csweimei.rentmanagementtreasure.databinding.ActivityDayPaperDetailBinding;
import com.csweimei.rentmanagementtreasure.http.entity.DailyListBean;
import com.csweimei.rentmanagementtreasure.http.entity.EntHomeDailyBean;
import com.csweimei.rentmanagementtreasure.tenant.viewModel.DapPDVM;

import me.goldze.mvvmhabit.base.BaseActivity;

public class DayPaperDetailActivity extends BaseActivity<ActivityDayPaperDetailBinding, DapPDVM> {


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_day_paper_detail;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    DailyListBean.DataDTO bean;


    @Override
    public void initParam() {
        super.initParam();
        bean = (DailyListBean.DataDTO) getIntent().getSerializableExtra(AppConfig.BUNDLE_KEY);
    }

    @Override
    public void initData() {
        super.initData();
        viewModel.setActivity(this);
        viewModel.entity.set(bean);


    }
}